package com.chris.design.pattern.samples.chain.demo;

/**
 * @author Chris
 */
public abstract class AbstractHandler {

    /**
     * 持有下一个处理请求的对象
     */
    protected AbstractHandler handler;

    public AbstractHandler getHandler() {
        return handler;
    }

    public void setHandler(AbstractHandler handler) {
        this.handler = handler;
    }

    /**
     * 申请聚餐的业务逻辑处理方法
     * @param user
     * @param fee
     * @return
     */
    public abstract String handleFeeRequest(String user , int fee);
}
